home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / AHDI606 / ERROR.H < prev    next >
Encoding:
Text File  |  2001-02-09  |  1.2 KB  |  49 lines

  1. ;+
  2. ; BIOS error codes
  3. ;-
  4. EDRVNR        equ    -2        ; driver not ready
  5. ESEEK        equ    -6        ; seek error
  6. EWRITF        equ    -10        ; write fault
  7. EREADF        equ    -11        ; read fault
  8. EWRPRO        equ    -13        ; write on write-protected media
  9. E_CHNG        equ    -14        ; media change detected
  10. CRITRETRY    equ    $00010000    ; "retry" return code
  11.  
  12.  
  13. ;+
  14. ; Controller error codes for ACSI and SCSI drives
  15. ;-
  16. CHKSTATUS    equ    2        ; check condition status
  17. DRVNRDY        equ    $4        ; drive not ready
  18. WRTPRTD        equ    $27        ; write on write-protected media
  19. MDMCHGD        equ    $28        ; media change detected
  20.  
  21.  
  22. ;+
  23. ; Bit assignments in Error Register of IDE drive
  24. ;-
  25. BBK        equ    7        ; 1: bad block detected
  26. UNC        equ    6        ; 1: non-correctable data error
  27. ;        equ    5        ; not used
  28. IDNF        equ    4        ; 1: requested ID not found
  29. ;        equ    3        ; not used
  30. ABRT        equ    2        ; 1: aborted command error
  31. TK0        equ    1        ; 1: track 0 not found error
  32. DMNF        equ    0        ; 1: data mark not found
  33.  
  34.  
  35. ;+
  36. ; Bit assignments in Status Register
  37. ;-
  38. BSY        equ    7        ; 1: drive busy
  39. DRDY        equ    6        ; 1: drive ready
  40. DWF        equ    5        ; 1: write fault detected
  41. DSC        equ    4        ; 1: actuator on track
  42. DRQ        equ    3        ; 1: ready to transfer
  43. CORR        equ    2        ; 1: data error corrected
  44. IDX        equ    1        ; 1: disk revolution completed
  45. ERR        equ    0        ; 1: error occurred
  46.  
  47.     
  48.  
  49.